<?php

require_once ('Interface.php');

class Joob_Plugins_Event_Standard implements Joob_Plugins_Event_Inteface {
	
	protected $_name;
	
	protected $_data;
	
	public function __construct($name, $data)	{
		$this->_name = $name;
		$this->_data = $data;
	}
	
	public function isEqual($otherEvent)	{
		if ($otherEvent->getEventName() == $this->getEventName())	{
			if ($otherEvent->getEventData() == $this->getEventData())	{
				return true;
			}	
		}
		return false;
	}
	
	/* (non-PHPdoc)
	 * @see Joob_Plugins_Event_Inteface::getEventName()
	 */
	public function getEventName() {
		return $this->_name;
	}

	/* (non-PHPdoc)
	 * @see Joob_Plugins_Event_Inteface::getEventData()
	 */
	public function getEventData() {
		return $this->_data;
	}
}

?>